﻿using LyrDBAccess;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace LyrDBAccess_Unit_Tests
{
    
    
    /// <summary>
    /// This is a test class for LyricsDBTest and is intended
    /// to contain all LyricsDBTest Unit Tests
    ///</summary>
    [TestClass()]
    public class LyricsDBTest
    {


        private TestContext testContextInstance;

        /// <summary>
        /// Gets or sets the test context which provides
        /// information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        /// A test for LyricsDB Constructor
        ///</summary>
        [TestMethod()]
        public void LyricsDBConstructorTest()
        {
            string appName = string.Empty; // TODO: Initialize to an appropriate value
            LyricsDB target = new LyricsDB(appName);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        /// A test for LyricsDB Constructor
        ///</summary>
        [TestMethod()]
        public void LyricsDBConstructorTest1()
        {
            LyricsDB target = new LyricsDB();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        /// A test for GetSongListByInLyrics
        ///</summary>
        [TestMethod()]
        public void GetSongListByInLyricsTest()
        {
            LyricsDB target = new LyricsDB(); // TODO: Initialize to an appropriate value
            string lyricScrap = string.Empty; // TODO: Initialize to an appropriate value
            string output = string.Empty; // TODO: Initialize to an appropriate value
            string outputExpected = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.GetSongListByInLyrics(lyricScrap, out output);
            Assert.AreEqual(outputExpected, output);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        /// A test for GetSongListByTrackName
        ///</summary>
        [TestMethod()]
        [DeploymentItem("lyrDBAccess.dll")]
        public void GetSongListByTrackNameTest()
        {
            LyricsDB_Accessor target = new LyricsDB_Accessor(); // TODO: Initialize to an appropriate value
            string song = string.Empty; // TODO: Initialize to an appropriate value
            string output = string.Empty; // TODO: Initialize to an appropriate value
            string outputExpected = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.GetSongListByTrackName(song, out output);
            Assert.AreEqual(outputExpected, output);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        /// A test for MakeRESTcall
        ///</summary>
        [TestMethod()]
        [DeploymentItem("lyrDBAccess.dll")]
        public void MakeRESTcallTest()
        {
            LyricsDB_Accessor target = new LyricsDB_Accessor(); // TODO: Initialize to an appropriate value
            string restCALL = string.Empty; // TODO: Initialize to an appropriate value
            string result = string.Empty; // TODO: Initialize to an appropriate value
            string resultExpected = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.MakeRESTcall(restCALL, out result);
            Assert.AreEqual(resultExpected, result);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        /// A test for SetInstanceStrings
        ///</summary>
        [TestMethod()]
        [DeploymentItem("lyrDBAccess.dll")]
        public void SetInstanceStringsTest()
        {
            LyricsDB_Accessor target = new LyricsDB_Accessor(); // TODO: Initialize to an appropriate value
            target.SetInstanceStrings();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        /// A test for etLyrics
        ///</summary>
        [TestMethod()]
        public void etLyricsTest()
        {
            LyricsDB target = new LyricsDB(); // TODO: Initialize to an appropriate value
            string artist = string.Empty; // TODO: Initialize to an appropriate value
            string song = string.Empty; // TODO: Initialize to an appropriate value
            string output = string.Empty; // TODO: Initialize to an appropriate value
            string outputExpected = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.GetLyrics(artist, song, out output);
            Assert.AreEqual(outputExpected, output);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        /// A test for etLyricsBySpecificRecordNo
        ///</summary>
        [TestMethod()]
        public void etLyricsBySpecificRecordNoTest()
        {
            LyricsDB target = new LyricsDB(); // TODO: Initialize to an appropriate value
            string number = string.Empty; // TODO: Initialize to an appropriate value
            string output = string.Empty; // TODO: Initialize to an appropriate value
            string outputExpected = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.GetLyricsBySpecificRecordNo(number, out output);
            Assert.AreEqual(outputExpected, output);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        /// A test for etSongListByArtistName
        ///</summary>
        [TestMethod()]
        public void GetSongListByArtistNameTest()
        {
            LyricsDB target = new LyricsDB(); // TODO: Initialize to an appropriate value
            string artist = string.Empty; // TODO: Initialize to an appropriate value
            string output = string.Empty; // TODO: Initialize to an appropriate value
            string outputExpected = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.GetSongListByArtistName(artist, out output);
            Assert.AreEqual(outputExpected, output);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
